import { HealthClient } from '../grpc/HealthServiceClientPb'
import GrpcCreator from '../utils/service'
import { StudentsRequest } from '../grpc/health_pb'

const backendUrl = "/api";
const checkClient = new GrpcCreator(HealthClient, backendUrl)

export function getStudent(data) {
  return checkClient.sendRequest(StudentsRequest, 'getStudents', data)
}

